import Compile from "./Compile.js";
import Observer from "./Observer.js";
export default class Vue {
  constructor(props) {
    this.el = props.el;
    this.data = props.data;
    this.methods = props.methods;
    this.createHooks("beforeCreated");
    Observer.create(this.data);
    this.createHooks("created");
    this.createHooks("beforeMount");
    new Compile(this.el, this);
    this.createHooks("mounted");
  }
  createHooks(hook) {
    this[hook] && this[hook].call(this);
  }
}
